Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
get-blob-duration
Advanced tools
Convenience method to patch Chromium bug when getting duration of HTML5 video or audio Blob.
Convenience method to patch Chromium bug when getting duration of HTML5 video or audio Blob.
npm install --save get-blob-duration
or
yarn add get-blob-duration
Import the method however you like (browser, module, etc.). Once you have it in scope:
// Returns Promise<Number>
getBlobDuration(blob).then(function(duration) {
console.log(duration + ' seconds');
});
Or use ECMAScript 6:
import getBlobDuration from 'get-blob-duration'
(async function() {
const duration = await getBlobDuration(blob)
console.log(duration + ' seconds')
})()
Or pass an object URL string if you already have one:
import getBlobDuration from 'get-blob-duration'
(async function() {
const blobUrl = 'blob:https://mdn.mozillademos.org/012345678-9abc-def0-1234-56789abcdef0'
const duration = await getBlobDuration(blobUrl)
console.log(duration + ' seconds')
})()
Initial release
FAQs
Convenience method to patch Chromium bug when getting duration of HTML5 video or audio Blob.
The npm package get-blob-duration receives a total of 16,970 weekly downloads. As such, get-blob-duration popularity was classified as popular.
We found that get-blob-duration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.